﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("Projects")]
    public partial class Projects
    {
        public Projects()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProjectID { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int OwnerID { get; set; }

        /// <summary>
        /// Desc:1-私人，2-社团/店铺，3公司企业
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int Identity { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Name { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Title { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Tag { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int PriceMin { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int PriceMax { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public DateTime Deadline { get; set; }

        /// <summary>
        /// Desc:1-由我选定画师自行联系 2-请画师主动来联系我
        /// Default:
        /// Nullable:False
        /// </summary>       
        /// 
        [SugarColumn(IsIgnore = true)]
        public int ContactType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Content { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Contact { get; set; }

        /// <summary>
        /// Desc:1-进行中，2-已结束
        /// Default:1
        /// Nullable:False
        /// </summary>           
        /// 
        [SugarColumn(IsIgnore = true)]
        public int Status { get; set; }

        /// <summary>
        /// Desc:
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>           
        /// 
        [SugarColumn(IsIgnore = true)]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        /// 
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime? UpdateAt { get; set; }

        [SugarColumn(IsIgnore = true)]
        public Models.UserInfo Owner { get; set; }

        [SugarColumn(IsIgnore = true)]
        public int ApplyCount { get; set; }

        [SugarColumn(IsIgnore = true)]
        public bool IsDeadLine { get; set; }

        [SugarColumn(IsIgnore =true)]
        public bool IsApply { get; set; }

    }
}
